package com.leoman.service;

import com.leoman.entity.Question;
import com.leoman.service.common.ICommonService;
import org.springframework.data.domain.Page;
import org.springframework.web.multipart.MultipartRequest;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/3/8.
 */
public interface QuestionService extends ICommonService<Question> {

    List<Map<String, Object>> pageToExcel(Map<String, Object> map);

    // 派发任务
    Integer sendInfo(Integer questionId, String section, String name, String sectionId, String userId);

    Integer readExcelInfo(MultipartRequest multipartRequest);

    Integer addQuestion(HttpServletRequest request, Integer areaId, Integer typeId, String memberName, String contactText, String description, Integer userType);

    Page<Question> findList(Integer pageNum, Integer pageSize);

    Integer updateQuestion(Integer id, Integer type, String recordDate,
                           Integer areaId, String descriptionOne,
                           String descriptionTwo, Integer scoreOne,
                           Integer scoreTwo, Integer scoreThree, Integer scoreFour,
                           Integer scoreFive, Integer scoreSix, Integer scoreSeven,
                           String nameOne, String sectionOne, String descriptionThree,
                           Integer scoreEight, Integer scoreNine, Integer scoreTen,
                           String nameTwo, String sectionTwo, String planDateOne,
                           String actualDateOne, Integer isCut, Integer status,
                           String tempAddImageIds, String tempDelImageIds);

    Page<Question> pageByParam(Integer typeId, Integer pageNum, Integer pageSize);
}
